package io.github.lostblackknight;

import org.junit.jupiter.api.Test;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.JedisCluster;

/**
 * @author chensixiang chensixiang1234@gmail.com
 */
public class JedisClusterTest {

    @Test
    public void test() {
        HostAndPort hostAndPort = new HostAndPort("192.168.255.133",6379);
        JedisCluster jedisCluster = new JedisCluster(hostAndPort);

        jedisCluster.set("b1","v1");
        String s = jedisCluster.get("b1");
        System.out.println(s);
        jedisCluster.close();
    }
}
